package com.my.bean;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 挤奶情况
 * </p>
 *
 * @author 冯政尚
 * @since 2018-10-13
 */
@TableName("milk")
public class Milk extends Model<Milk> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	private Long id;
    /**
     * 挤奶时间
     */
	@TableField("milkTime")
	private Long milkTime;
    /**
     * 挤奶奶量
     */
	@TableField("milkVolume")
	private String milkVolume;
    /**
     * 关联妈妈id
     */
	private Long mid;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getMilkTime() {
		return milkTime;
	}

	public void setMilkTime(Long milkTime) {
		this.milkTime = milkTime;
	}

	public String getMilkVolume() {
		return milkVolume;
	}

	public void setMilkVolume(String milkVolume) {
		this.milkVolume = milkVolume;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Milk{" +
			"id=" + id +
			", milkTime=" + milkTime +
			", milkVolume=" + milkVolume +
			", mid=" + mid +
			"}";
	}
}
